import request from "@/utils/request";

/**
 * 分页查询所有用户
 * @param data
 * @returns {*}
 * @constructor
 */
export const findAllSysUser = (data) => {
  return request({
    url: "/admin/system/sysUser/findAllSysUser",
    method: "get",
    params:data
  });
};

/**
 * 新增或者修改用户信息
 * @param data
 * @returns {*}
 */
export const saveOrUpdateUser = (data) => {
  return request({
    url: "/admin/system/sysUser/saveOrUpdateUser",
    method: "post",
    data:data
  });
};

/**
 * 删除用户信息
 * @param data
 * @returns {*}
 */
export const deleteUser = (data) => {
  return request({
    url: "/admin/system/sysUser/deleteUser",
    method: "delete",
    data:data
  });
};

